<?php //echo "<pre>";print_r($adUnits);echo "</pre>";?>
<span>Ad Unit：</span><select id='adUnitId'>
<?php foreach($adUnits as $key=>$val){ ?>
	<option value='<?php echo $val['id']; ?>'><?php echo $val['name']; ?></option>
<?php } ?>
</select>
<br /><br />
<span>Host Channel：</span><select id='hostCustomChannelId'>
<?php foreach($hostCustomChannels as $key=>$val){ ?>
	<option value='<?php echo $val['id']; ?>'><?php echo $val['name']; ?></option>
<?php } ?>
</select>&nbsp;<span><input type="button" value="New" onclick="newCustomChannelForm();"></span>
<br /><br />
<input type="button" value="Get Code" onclick="getAdCode('<?php echo $accountID; ?>');">